<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>用户管理</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/default.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/icon.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/common/Date.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/page/doctor/doctor.js"></script>
</head>
<body>

<table id="gridUser" >
	<thead>
		<tr>
		    <th data-options="field:'name',width:100">医生名称</th>
			<th data-options="field:'introduction',width:100">医生简介</th>
			<th data-options="field:'hospitalName',width:135">医院名称</th>
			<th data-options="field:'departmentName',width:135">所属科室</th>
			<th data-options="field:'state',width:60,formatter:stateColumn">状态</th>
			<th data-options="field:'createDate',width:135">创建时间</th>
			<th data-options="field:'id',width:110,formatter:optColumn" align="center">操作</th>
		</tr>
	</thead>
</table>

<!-- 工具栏-start -->
<div id="tbUser" style="padding:5px;height:auto">
	<div style="margin-bottom:5px">
		<div style="float: left;">
			<a href="javascript:dlgUserOpenAdd();" class="easyui-linkbutton" data-options="iconCls:'icon-add'" plain="true" title="添加"></a>
		</div>
		<div class="datagrid-btn-separator" style="margin-left: 5px;float: left;margin-right: 15px;"></div>
		<input class="easyui-textbox" id="txtSearchDoctorName" style="width:120px" data-options="prompt:'请输入医生姓名'" />
		<a href="javascript:search();" class="easyui-linkbutton" data-options="iconCls:'icon-search'" >查询</a>
	</div>
</div>
<!-- 工具栏-end -->
<!-- 编辑用户对话框-start -->
<div id="dlgUser" class="easyui-dialog" title="医生管理" data-options="modal:true,closed:true" style="width:530px;height:420px;padding:5px;">
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
			<div style="display: none;">
			<input id="txtOpType" name="opType" hidden="hidden" value="add"/>
			</div>
			<form id="frmUser" method="post" enctype="multipart/form-data">
				<table>
	    		<tr>
	    			<td  align="right">医生名称：</td>
	    			<td>
	    			<input  id="userId" type="hidden"  name="userId" >
	    				<input id="txtdoctorId" type="hidden"  name="id"/>
	    				<input id="txtCreateDate" type="hidden"  name="createDate"/>
	    				<input id="txtname" class="easyui-textbox" type="text"  name="name"  style="width: 100px;"  data-options="required:true"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">医生头像：</td>
	    			<td colspan="3">
	    		<div style="display: none " id="portrait"><img alt="" src="" width="80px" height="100px" id="imgSend"></div>
	    			<br/><input id="imgUrl" name="imgUrl" type="file" value=""/>
	    				
	    			</td>

	    		</tr>
	    		<tr>
	    		<td align="right">用户名：</td>
	    		<td><input id="userName" class="easyui-textbox" type="text"  name="userName" style="width: 100px;"  data-options="required:true"/></td>
                <td align="right">密码：</td>
                <td><input id="password" class="easyui-textbox" type="password"  name="password" style="width: 100px;" data-options="required:true"/></td>
              
	    		</tr>
	    		<tr>
	    			<td align="right">医院名称：</td>
	    			<td colspan="3">
	    				<select id="hospitalId"  name="hospitalId"  onchange="createSelCity()" data-inline="true" data-mini="true" style="width:150px;">   
                        <option value="">请选择</option>   	
                       </select>科室：
                	  <select id="departmentId"  name="departmentId" data-inline="true" data-mini="true" style="width:100px;">   
                        <option value="">请选择</option>   	
                       </select>    
                    </td>
	    		</tr>
                  <tr><td align="right">医生简介： </td>
                      <td colspan="3">
	    				<input id="introduction" class="easyui-textbox" type="text"  name="introduction"  style="width: 250px;" data-options="required:true"/>
	    			</td>
                  </tr>
                   <tr><td align="right">详细介绍： </td>
                      <td colspan="3">
                        <textarea name="description" id="description" cols="" rows="" style="width: 300px; height:100px;" data-options="required:true"></textarea>	    	
           		      </td>
                  </tr>
	    		</table>
			</form>
		</div>
		<div data-options="region:'south',border:false" style="text-align:center;padding:5px 0 0;">
			<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:submitForm();" style="width:80px">确定</a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:dlgUserCancel();" style="width:80px">取消</a>
		</div>
	</div>
</div>

</body>
</html>